You are here: Statements and Functions > Inc
Syntax samples
INC <name>{, <expression>}
INC Var1
INC Attr2, 5+Var1
Increments a variable, array element, or attribute by the value of a specified numeric expression. When counting the number of entities a location has processed, increment a variable at the end of the processing logic.
Any logic.
Components
<name>
The name of any variable, array element, or attribute.
<expression>
The amount to increment the value. If this expression is omitted, the value will be incremented by one. This can be a negative number.
Example
The following example increments two variables in the exit logic. Num_complete is incremented by one, and Count is incremented by the expression Attr1*Attr2.
DEC.